function y=softsign(x,w) 
y = x/(norm(x,2)+w);%where w is a small positive number
end